tools/python: blkdev_name_to_number fixes
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 27 Jun 2008 15:09:58 +0000 (16:09 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 27 Jun 2008 15:09:58 +0000 (16:09 +0100)
commitbbc24abfb23113b6d3177763a581b45795642a5f
treeab21502a3b3b0e864c14e0cfe263a88f0b5ba4c5
parent4fe815abd1ed8a2a95bfaf1b96a36df3be897bfe
tools/python: blkdev_name_to_number fixes

Rework blkdev_name_to_number to allow the tools to attach xvd disks
beyond xvdp.

 1.  Adds the handling for the /dev/xvd[q-z] and /dev/xvd[a-i][a-z]
     extended devices

 2.  Changes blkdev_name_to_number() to return a tuple of (xenbus,
     devnum), and then deals with the resulting fallout.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
tools/python/xen/util/blkif.py
tools/python/xen/xend/server/blkif.py
tools/python/xen/xm/main.py